<!-- The view to create a new group test or mofify the specifed group test -->
<script type="text/javascript">
</script>

<br />
<form id="add_group_test_form" name="add_group_test_form">
<input type="hidden" id="group_test_id" name="group_test_id" value="{$groupTest->get_id()}">
<div class="form_container" style="width: 680px;">
    <div>
        <span id="status_message" style="font-style: italic; color: red;"></span>
    </div>
    <table cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="4" class="field" style="text-transform: uppercase">{translate}Test type detail{/translate}</td>
        </tr>
        <tr>
            <td class="label">{translate}Test type name{/translate}</td>
            <td colspan="3" class="field">
                <input id="group_test_name" name="group_test_name" type="text" size="65" 
                    value="{$groupTest->getLocalizedText('name')}">
            </td>                                
        </tr>
        <tr>
            <td class="label">{translate}Room{/translate}</td>
            <td class="field">
                <select id="room" name="room" style="width: 150px;">
                    {html_options options=$roomList selected=$groupTest->get('room_id')}
                </select>
            </td>        
            <td class="label">{translate}Type{/translate}</td>
            <td class="field">
                <select id="payment_type" name="payment_type" style="width: 125px;">                    
                    <option value="after" label="{translate}Postpaid{/translate}"
                        {if $groupTest->get('payment_type') == 'after'} selected="selected" {/if}>{translate}Postpaid{/translate}
                    </option>
                    <option value="before" label="{translate}Prepaid{/translate}" 
                        {if $groupTest->get('payment_type') == 'before'} selected="selected" {/if}>{translate}Prepaid{/translate}
                    </option>
                </select>                
            </td>
        </tr>
    </table>
    
</div>

<div align="right" style="padding-top: 10px; width: 700px;">
    <div id="btn_save">
        <a id="button_save" class="button_link" href="javascript:saveGroupTest();">
            {if $groupTest->get_id() > 0}
                {translate}Save test type{/translate}                  
            {else}
                {translate}Add new test type{/translate}
            {/if}
        </a>
    </div>
    <div id="barLoading" style="display:none;">
        <img src="{$base_uri}images/ajax-loader.gif"/>
    </div>
</div>
</form>
